package com.wtwd.campus.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author zdl
 * @Description
 * @create 2021-06-16 11:26
 */
@ApiModel("基础树")
public class TreeVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="节点,对应ID")
    private Integer id;

    @ApiModelProperty(value="节点名称")
    private String name;

    @ApiModelProperty(value="上级key")
    private Integer pid;

    @ApiModelProperty(value="节点层级")
    private String type;

    @ApiModelProperty(value="下级节点数据")
    List<TreeVO> children = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TreeVO> getChildren() {
        return children;
    }

    public void setChildren(List<TreeVO> children) {
        this.children = children;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
